package com.cloudbroker.bcs.platform.ltb.middle.model;

import com.alibaba.fastjson.JSON;
import com.cloudbroker.bcs.common.model.SessionIdentity;
import org.apache.commons.lang3.StringUtils;

/**
 * Created by tianrui on 2016/7/9.
 */
public class VerifyCodeCache extends SessionIdentity {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 1L;

    protected String verify_code;

    protected long create_time;

    protected int verify_code_count;

    public String toStringInfo() {
        return JSON.toJSONString(this);
    }

    public static VerifyCodeCache fromStringInfo(String string) {
        if (StringUtils.isNotBlank(string)) {
            return JSON.parseObject(string, VerifyCodeCache.class);
        }
        return null;
    }



    public String getVerify_code() {
        return verify_code;
    }

    public void setVerify_code(String verify_code) {
        this.verify_code = verify_code;
    }

    public int getVerify_code_count() {
        return verify_code_count;
    }

    public void setVerify_code_count(int verify_code_count) {
        this.verify_code_count = verify_code_count;
    }

    public long getCreate_time() {
        return create_time;
    }

    public void setCreate_time(long create_time) {
        this.create_time = create_time;
    }
}
